package com.feige.utils.exception;

import com.feige.constant.Constants;

/**
 * @author feige
 */
public class BusinessException extends BaseException {

    private static final long serialVersionUID = 2668562304171453447L;

    public BusinessException(String msg , Object... args) {
        this(Constants.FAILURE_CODE, msg, args);
    }

    public BusinessException(String msg) {
        this(Constants.FAILURE_CODE, msg);
    }
    public BusinessException() {
        this(Constants.FAILURE_MSG);
    }

    public BusinessException(String code, String msg, Object... args) {
        super(code, msg, args);
    }

    public BusinessException(String message, String code, String msg, Object... args) {
        super(message, code, msg, args);
    }

    public BusinessException(String message, Throwable cause, String code, String msg, Object... args) {
        super(message, cause, code, msg, args);
    }

    public BusinessException(Throwable cause, String code, String msg, Object... args) {
        super(cause, code, msg, args);
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code, String msg, Object... args) {
        super(message, cause, enableSuppression, writableStackTrace, code, msg, args);
    }
}
